<script>
	export default {
		onLaunch: function() {
			uni.hideTabBar()
			// 获取配置
			// this.$H.get('api/index/getConfig', {}).then(res => {
			// 	this.$store.commit('configDetail', res);
			// });
		},
		onShow: function(options) {
			// console.log('AppOnShow',options);
			try{
				if( typeof options.referrerInfo.extraData != 'undefined' ){
				  if(options.referrerInfo.extraData.callbackObj.from == 'esign'){
				    //如果需要进行跳转的话，可以在这边处理，跳转到自己的小程序某个页面
					uni.$emit('resetNewestInfo',{from:'esign'});
					uni.switchTab({
						url:'/pages/lease/index'
					})
				  }
				}
			}catch(e){
				//TODO handle the exception
			}
		},
		onHide: function() {
			console.log('App Hide')
			
		}
	}
</script>

<style lang="scss">
	@import "@/uview-ui/index.scss";
	/* #ifdef H5 */
	@import "@/common/h5-font.css";
	/* #endif */
	*{
		font-family: PingFang SC-Regular, PingFang SC;
	}
	.u-popup__content {
		background-color: transparent !important;
	}
	/*每个页面公共css */
	::-webkit-scrollbar{
	  display: none;
	}
	.btn-active:active{
		opacity: 0.6;
	}
	.hid{
		display: none;
	}
	.bg-w{
		background-color: #fff;
	}
	.input-placeholder {
		font-size: 24rpx;
		font-family: Source Han Sans CN;
		color: #B8B8B8;
	}
	.Border,
	page {
		box-sizing: border-box;
		-moz-box-sizing: border-box;
	}
	/*每个页面公共css */
	/*自动隐藏文字*/
	.ellipsis1 {
		overflow: hidden;
		text-overflow: ellipsis;
		word-wrap: break-word;
		word-break: break-all;
		white-space: nowrap;
	}
	
	.ellipsis2 {
		display: -webkit-box;
		overflow: hidden;
		text-overflow: ellipsis;
		word-wrap: break-word;
		word-break: break-all;
		white-space: normal !important;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
	}
	
	.ellipsis3 {
		display: -webkit-box;
		overflow: hidden;
		text-overflow: ellipsis;
		word-wrap: break-word;
		word-break: break-all;
		white-space: normal !important;
		-webkit-line-clamp: 3;
		-webkit-box-orient: vertical;
	}
	
	.fl {
		float: left;
	}
	
	.fr {
		float: right;
	}
	
	.flow-center {
		display: flex;
		justify-content: center;
		align-items: center;
	}
	
	.flow-justify-center {
		display: flex;
		justify-content: center;
	}
	
	.flow-align-center {
		display: flex;
		align-items: center;
	}
	
	.flow-flex-start {
		display: flex;
		justify-content: flex-start;
	}
	.flow-flex-start-center {
		display: flex;
		justify-content: flex-start;
		align-items: center;
	}
	.flow-flex-start-wrap {
		display: flex;
		justify-content: flex-start;
		flex-wrap: wrap;
	}
	
	.flow-start-center {
		display: flex;
		justify-content: flex-start;
		align-items: center;
	}
	
	.flow-space-between-center {
		display: flex;
		justify-content: space-between;
		align-items: center;
	}
	
	.flow-space-between {
		display: flex;
		justify-content: space-between;
	}
	
	.flow-column-center {
		display: flex;
		flex-flow: column;
		justify-content: center;
		align-items: center;
	}
	
	.flow-column-justify-center {
		display: flex;
		flex-flow: column;
		justify-content: center;
	}
	
	button {
		padding: 0 !important;
		line-height: auto !important;
		width: 100%;
		font-weight: normal !important;
		background: none;
	}
	
	button::after {
		border: 0;
	}
	
	.button-hover {
		background: none;
	}
	
	scroll-view ::-webkit-scrollbar {
		width: 0;
		height: 0;
		color: transparent;
	}
	
	/* 没有更多了 */
	.no-more {
		width: 100%;
		height: 100rpx;
		line-height: 100rpx;
		text-align: center;
		font-size: 27rpx;
		font-family: PingFang SC;
		color: #DDDDDD;
	}
	
	@keyframes scaleDrew {
		0% {
			transform: scale(1);
		}
	
		25% {
			transform: scale(1.05);
		}
	
		50% {
			transform: scale(1);
		}
	
		75% {
			transform: scale(1.05);
		}
	}
	
	/* 底部线条 */
	.bottom-border {
		position: relative;
	}
	
	.bottom-border::after {
		content: '';
		position: absolute;
		bottom: 0;
		left: 0;
		right: 0;
		height: 1px;
		background-color: #D8D8D8;
		transform: scale(1, 0.5);
	}
	
	/* 顶部线条 */
	.top-border {
		position: relative;
	}
	
	.top-border::after {
		content: '';
		position: absolute;
		top: 0;
		left: 0;
		right: 0;
		height: 1px;
		background-color: #D8D8D8;
		transform: scale(1, 0.5);
	}
	.btn-click:active{
		opacity: 0.7;
	}
	.placeholder-input{
		font-size: 32rpx;
		font-family: PingFang SC-Regular, PingFang SC;
		color: #BBBBBB;
	}
	// 数据为空
	.empty-box{
		text-align: center;
	}
	.u-empty__text{
		margin-top: 0 !important;
	}
	/* 弹窗 */
	.pupop-q{
		position:fixed;
		top:0;
		left:0;
		width:100%;
		height:100%;
		background:rgba(0,0,0,.52);
		z-index: 1000;
	}
	.pupop-q .close{
		width:88rpx;
		height:84rpx;
		position:absolute;
		top:-18rpx;
		right:-22rpx;
		z-index: 5;
	}
	
	.btn-tap:active{
		opacity: 0.6;
	}
</style>
